/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ticketmachine.logic.paymentAdapters;

/**
 *
 * @author oiiv2253
 */
public class CreditPayment extends Payment {

    String creditCardNumber;
    String expirationDate;

    public CreditPayment (String cardNumber, String ExpiryDate, float amount) {
        super(amount);
        creditCardNumber = cardNumber;
        expirationDate = ExpiryDate;

    }

    @Override
    public float authorise() {

        return 1;

    }



}
